package com.itqf.service;

import com.itqf.entity.ScheduleJob;
import com.itqf.utils.Pager;
import com.itqf.utils.R;
import com.itqf.utils.ResultData;
import org.quartz.SchedulerException;

import java.util.List;

/**
 * @author 徐老板
 * @date 2020/1/31   9:48
 */
public interface SchedulerService {
    ResultData schedulerList(Pager pager,String search);

    /**
     * 保存操作
     */
    R save(ScheduleJob scheduleJob) throws SchedulerException;
    R delete(List<Long> jobIds);
    R update(ScheduleJob scheduleJob);
    R get(Long jobId);

    /**
     * 暂停
     */
    R pause(List<Long> jobIds);
    /**
     * 恢复
     */
    R resume(List<Long> jobIds);
    /**
     * 执行
     */
    R run(List<Long> jobIds);


}
